package com.efuture.chaptertow

/* @Description: 函数类型作为函数的返回值
 * @Auther: zhaoshanshan
 * @Date: 2022/03/04/9:40 下午
 */

fun main() {
    val show = showMethod("show");//返回值show是个匿名函数
    val value = show("zhaoshanshan", 30)
    println(value)
}
fun showMethod(info:String):(String,Int)->String{
    return{
        name:String,age:Int->
        "我的姓名是$name,我的年龄是$age"
    }
}
    